package pri.zxx.learndemo.lambdaandstream.functions;

import java.util.function.BiFunction;

/**
 * @author Twilight
 * @desc
 * @createTime 2020-05-31-10:26
 */
public class BiFunctionTest {

    public static void main(String[] args) {
        BiFunctionTest biFunctionTest = new BiFunctionTest();
        biFunctionTest.biTest(String::concat);
    }

    public void biTest(BiFunction<String, String, String> turBiFunction) {
        String str1 = "1111";
        String str2 = "2222";
        String apply = turBiFunction.apply(str1, str2);
        System.out.println(apply);
    }
}
